/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pruebaVisitor;

/**
 *
 * @author Instructor
 */
public class Programa {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        ShoppingCart cart = new ShoppingCart();
        cart.add(new Libro());
        cart.add(new CD());
        cart.add(new PSGame());
        System.out.println("Precio total: " + cart.getTotalPrice());
    }

}
